#!/usr/bin/env bash
# 下载 rubberband 3.x 源码到 contrib 目录
set -e
RUBBERBAND_VERSION=3.1.0
RUBBERBAND_URL="https://breakfastquay.com/files/releases/rubberband-${RUBBERBAND_VERSION}.tar.bz2"
RUBBERBAND_LOCAL=android/contrib/rubberband

echo "== pull rubberband base =="
cd "$(dirname "$0")/android/contrib"
if [ ! -d rubberband ]; then
    wget $RUBBERBAND_URL -O rubberband.tar.bz2
    tar xjf rubberband.tar.bz2
    mv rubberband-${RUBBERBAND_VERSION} rubberband
    rm rubberband.tar.bz2
fi
cd - > /dev/null 